<!-- /* Description for file.
 * 公司非共享-新建文件夹
 *
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/filecompanyunshares
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0629
 * @lastmodified  张海杰2011年0629
 */-->
 
<?php
echo $javascript->link ( 'jquery' );
?> 
<script type="text/javascript">
$(document).ready(function(){
	$("#cancel").click(function(){
		$(window.parent.document).find(".toolbarStyle").toggle(); 
		});
		$("#btnajaxAdd").click(function(){		
			$.post(
				'<?php echo ROOT_WEB_PATH; ?>/filecompanyunshares/addfold/',
				{
					data: {}
					},
				function()
				{		
						$("#FilecompanyunshareAddfoldForm").submit();
						window.parent.location.reload();
					}
					);
			});
});
</script>

<div class="toolbarchildStyle">
<?php echo $form->create('Filecompanyunshare',array('action'=>'addfold','type'=> 'post'));?>
<table width="100%"  height="90px" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="20"></td>
		<td width="100"><?php __('NewFilepersonalFold');//新建文件夹名?>:</td>
		<td><?php echo $form->input('fileName',array('label'=>false)); ?>
		</td>
	</tr>	
	<tr>
		<td width="20"></td>
		<td width="100"><?php __('FilepersonalSelectFather');//选择父目录?>:</td>
		<td><?php $options = array();
				foreach($folds as $eachrecord)
								{					
									$options[$eachrecord['Filecompanyunshare']['id']] = $eachrecord['Filecompanyunshare']['fileName'];
								}
								echo $form->input('fatherId',array('options'=>$options,'label'=>false,'div'=>false,'class'=>'TextBoxE1','empty' =>'--'));					
					//下拉菜单?>
		</td>
	</tr>	
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php echo $form->button('关闭',array('type'=>'button','class'=>'cancelbutton','id'=>'cancel'));?>  <!-- __('reset', true)重置-->
		</td>
		<td width="100"><?php echo $form->button('确定',array('type'=>'button','class'=>'oksubmit','id'=>'btnajaxAdd'));?> 
		</td>
	</tr>
</table>
	<?php echo $form->end();?>	
</div>